<?php
 require "model/index.model.php";
 $id = $_POST["id"];
 $username = $_POST["username"];
 $email = $_POST["email"];
 $password = $_POST["password"];
 $phone = $_POST["phone"];
 $date = $_POST["date"];
 $regtime = strtotime($date);  
 $tr=userList::useredit($username,$email,$id,$password,$phone,$regtime);  
 if($tr){
    echo "<script>alert('修改成功');parent.location.href='./index.php';</script>";
 }else{
    echo "<script>alert('修改失败');parent.location.href='./useredit2.php?id=$id';</script>";
 }
